//
// Created by Gorun on 2022/5/4.
//

#ifndef LOXPP_LOXRETURN_H
#define LOXPP_LOXRETURN_H

#include <any>
#include <stdexcept>

using namespace std;

struct LoxReturn: exception{
    explicit LoxReturn(any value)
    : exception(), value{move(value)}
    {}

    const any value;
};

#endif //LOXPP_LOXRETURN_H
